package net.atos.spring.library;

import javax.persistence.Entity;

@Entity
public class Book extends LibraryItem {

    private String author;
    private String title;
    private String subtitle;

    protected Book() {
	super();
    }

    public Book(String locationRow, String location, String author, String title, String subtitle) {
	super(locationRow, location);
	this.author = author;
	this.title = title;
	this.subtitle = subtitle;
    }

    @Override
    public String toString() {
	return "Book [author=" + author + ", title=" + title + ", subtitle=" + subtitle + ", toString()=" + super.toString() + "]";
    }

    public String getAuthor() {
	return author;
    }

    public void setAuthor(String author) {
	this.author = author;
    }

    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public String getSubtitle() {
	return subtitle;
    }

    public void setSubtitle(String subtitle) {
	this.subtitle = subtitle;
    }
}
